
package com.shop.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;


/**
 * 供应商spu规格表
 *
 * @author
 * @date 2024-11-06 10:10:46
 */
@Data
@TableName("supplier_goods_spu_spec")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "供应商spu规格表")
public class SupplierGoodsSpuSpec extends Model<SupplierGoodsSpuSpec> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "PK不能为空")
    @Schema(description = "PK")
    private String id;
    /**
     * 所属租户
     */
    @NotNull(message = "所属租户不能为空")
    @Schema(description = "所属租户")
    private String tenantId;
    /**
     * spu_id
     */
    @NotNull(message = "spu_id不能为空")
    @Schema(description = "spu_id")
    private String spuId;
    /**
     * spec_id
     */
    @NotNull(message = "spec_id不能为空")
    @Schema(description = "spec_id")
    private String specId;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    /**
     * 排序字段
     */
    @Schema(description = "排序字段")
    private Integer sort;

}
